package experiment2_2;

import java.util.Scanner;

/**
 * Date: 2023-04-23
 * Time: 15:31
 */
public class Game {
    public static void main(String[] args) {
        System.out.println("请输入你要创建的英雄");
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        if(str.equals("李白")){
            liBai li1 = new liBai("libai",100,"hunagjin",10,"1");
            li1.QiangJinJiu();
        } else if (str.equals("百里")) {
            baili bai1 = new baili("baili",100,"jingmizhiyan",0,"2");
            bai1.jingmizhiyan();
        }else{
            diaochan diao1 = new diaochan("diaochan",100,"huazhiyinji",10,"3");
            diao1.huazhiyinji();
        }
    }
}
